import request from '@/utils/request'
export function queryPage(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/gameManage/queryPage',
    method: 'post',
    data
  })
}
// 新增
export function add(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/gameManage/insert',
    method: 'post',
    data
  })
}
// 根据id获取详情
export function get(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/gameManage/get',
    method: 'post',
    data
  })
}
// 修改
export function update(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/gameManage/update',
    method: 'post',
    data
  })
}
// 删除
export function deleteById(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/gameManage/deleteById',
    method: 'post',
    data
  })
}
// 获取系统分类字典
export function getDic(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/sysDictionary/getDictByCode',
    method: 'post',
    data
  })
}

/**
 * 更改状态
 * @param data
 * @returns {*}
 */
export function updateState(data) {
  return request({
    baseURL: '/API-ENTERPRISE-BACKEND/',
    url: '/backend/gameManage/publish',
    method: 'post',
    data
  })
}
